package com.cy.dda.model.vo.rule;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 后台权限菜单树状图
 *
 * @author: tanyilin
 * @create: 2018年11月9日 下午2:35:38
 */
@Data
@ApiModel("后台权限菜单树状图")
public class MenuTreeVO {

    @ApiModelProperty(value = "菜单ID", example = "0")
    @JsonProperty("key")
    private Long id;

    @ApiModelProperty(value = "菜单名称")
    @JsonProperty("title")
    private String name;

    @ApiModelProperty(value = "是否选择", example = "0")
    private boolean checked;

    @ApiModelProperty(value = "子菜单")
    private List<MenuTreeVO> children;
}
